package com.b511.swpu.cementbackend.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 地层温度 对应表 BA_STRATUMTEMPERATURE
@Table(name = "BA_STRATUMTEMPERATURE")
public class BA_StratumTemperature extends BABaseEntity {
    @Id
    @GenericGenerator(name="lithologyGenerator", strategy="uuid")
    @GeneratedValue(generator="lithologyGenerator")
    @Column(name = "BA_STRATUMTEMPERATURE_ID")
    private String BA_StratumTemperature_ID;

    @Basic
    @Column(name = "BEGINDEPTH")
    private Double beginDepth;

    @Basic
    @Column(name = "ENDDEPTH")
    private Double endDepth;

    @Basic
    @Column(name = "TEMPERATUREGRADIENT")
    private Double temperatureGradient;

    @Basic
    @Column(name = "TEMPERATURE")
    private Double temperature;

    @ManyToOne
    @JoinColumn(name="ba_well_id")
    private BA_Well well;

}
